Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Isaac Ekgerogenakoi 12.Jan.04 11:45 PM a Web browser
Applications Development 6.0.3 Windows NT


I am trying to write code to prevent a user from selecting duplicates dates. I have the following code in the querysave and I recieve this error "You have attempted nested events". If I place the code in the save & close button it save regardless of duplicate. Please Help!

t := @If(PeriodEnding != ""; @DbLookup("":"NoCache";""; "ENL";EmployeeName2;2); "");
List:= @If(@IsError(t); "nope"; t);

@If(PeriodEnding = ""; @Return(@Prompt([Ok];"Reminder";"The Period Ending field cannot be blank!"));
@If(@Contains(@Text(PeriodEnding); @Text(List));
@Return(@Prompt([Ok]; "Reminder!"; "You have entered a duplicate period-ending date. You can add only unique dates.")); @Do(@Command([FileSave]); @PostedCommand ([FileCloseWindow]))))






@unique w/ a date field (~Isaac Ekgeroge... 12.Jan.04)
. . RE: @unique w/ a date field (~Mario Lopkiste... 13.Jan.04)
. . Your problem is the @Do(@Command([F... (~Dan Elhipister... 13.Jan.04)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS